package dictionary.script;

public class Type5 extends Word implements DictionaryInterface{
	
	public Type5(String medial, String nucleus) {
		this.initial = "";
		this.medial = medial;
		this.nucleus = nucleus;
		this.ending = "";
		this.word = this.medial + this.nucleus;
	}
	public static boolean check(String medial, String nucleus){
		int pos = 0;
		for(int i=0;i<MEDIAL.length;i++)
			if(medial.equals(MEDIAL[i])){
				pos = i;
				break;
			}
		for(int i=0;i<MEDIAL_NUCLEUS[pos].length;i++)
			if(nucleus.equals(MEDIAL_NUCLEUS[pos][i]))
				return true;
		return false;
	}
}
